package com.object.module.cbb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.object.configuration.utils.PageUtils;
import com.object.configuration.utils.Q;
import com.object.module.cbb.entity.CbbShoppingCartEntity;

import java.util.List;
import java.util.Map;

/**
 * 购物车
 *
 * @author 小🌤
 * @email 1578442339@qq.com
 * @date 2022-02-07 14:10:44
 */
public interface CbbShoppingCartService extends IService<CbbShoppingCartEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Q spike(Long spId, Integer urId);

    boolean userAddsToCart(Integer urId, Long spId, CbbShoppingCartEntity shoppingCartEntity);

    List<CbbShoppingCartEntity> all(Integer urId);
}

